/*选中所有元素去除内外边距：样式重置*/
* {
    margin: 0;
    padding: 0;
}

#app {
    width: 100vw;
    height: 100vh;
}

/*水平方向弹性布局*/
.row {
    display: flex;
    flex-direction: row;
}

/*垂直方向弹性布局*/
.colum {
    display: flex;
    flex-direction: column;
}

/*完美居中*/
.center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-head {
    flex: 1;
    background: linear-gradient(135deg, #8bdeda, #43add0, #998ee0, #e17dc2, #ef9393);
}

.music-body {
    position: relative;
    flex: 9;
    overflow: hidden;
}

#bg {
    position: absolute;
    height: 100%;
    filter: blur(50px);
}

/*唱片区域样式*/
.cover {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url("../img/disc.png") no-repeat center center;
    animation: loop 5s infinite linear; /*设置自定义动画*/
    animation-play-state: paused; /*默认暂停旋转*/
}

/*控制唱片旋转*/
.playing {
    animation-play-state: running;
}

.cover > img {
    width: 9rem;
    border-radius: 50%; /*边框半径*/
}

.music-name {
    position: absolute;
    top: 5%;
    width: 100%;
    text-align: center;
    font-size: 1.2rem;
    letter-spacing: .1rem;
    color: #fff;
}

.music-foot {
    position: relative;
    flex: 2;
    background: linear-gradient(135deg, #8bdeda, #43add0, #998ee0, #e17dc2, #ef9393);
}

.progress-box {
    position: absolute;
    top: -10px;
    height: 20px;
    width: 100%;
}

.progress-trace {
    position: absolute;
    top: 9px;
    width: 100%;
    height: 2px;
}

.progress {
    position: relative;
    width: 33.3%;
    height: 100%;
    background: #fff;
    box-shadow: 0 0 10px #ff0;
}

.thumb {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px #ff0;
}

/*时间显示样式*/
.time {
    padding: 5px;
    color: #fff;
    font-size: 0.8rem;
}

.time > div {
    flex: 1;
}

.time-total {
    text-align: right;
}

/*控制按钮样式*/
.btn-control {
    height: 70%;
}

.btn-control > button {
    background: transparent;
    border: none;
    color: #fff;
}

.btn-loop,
.btn-list {
    flex: 1;
}

.btn-prev,
.btn-next {
    flex: 2;
}

.btn-play-pause {
    flex: 3;
}

/*歌曲列表弹层样式*/
.music-list-wrapper {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 100%;
    padding:0 5px;
    background: rgba(0,0,0,0.8);
    overflow-y: scroll; /*内容超出部分显示滚动条*/
    box-sizing: border-box;
}
#btnClose{
    position: fixed;
    top: calc(10rem + 5px);
    right: 5px;
    color: #fff;
    z-index: 9999;
    display: none;
}
.music-list{
    list-style: none; /*去除列表自带的圆点标识*/
    color:#fff;
}
.music-list > li{
    height: 3rem;
    line-height: 3rem;
    font-size: 0.9rem;
}
.music-list>li:not(:last-child){
    border-bottom: 1px solid rgba(255,255,255,.2);
}
li i{
    margin:0 5px;
}

li:hover,
.active{
    background: rgba(255,255,255,0.8);
    color:#222;
}

#toast{
    position: fixed;
    bottom: 10rem;
    width: 100vw;
    color:#fff;
    font-size: 0.8rem;
    text-align: center;
}
#msg{
    padding:10px 20px;
    background: rgba(0,0,0,0.8);
    border-radius: 5px;
    display: none;
}

/*自定义动画*/
@keyframes loop {
    from { /*动画开始*/
        transform: rotate(0deg);
    }
    to { /*动画结束*/
        transform: rotate(360deg);
    }
}
